

angular.module('theApp.routes', [])

.config(['$routeProvider', function($routeProvider) {
    $routeProvider
    
        .when("/"           , {templateUrl: "pages/home.html"})
        .when("/home"       , {templateUrl: "pages/home.html"})
        .when("/help"       , {templateUrl: "pages/help.html"})
        .when("/about"      , {templateUrl: "pages/about.html"})
        .when("/other"      , {templateUrl: "pages/other.html"})
        .when("/error/:id"  , {templateUrl: "pages/error.html", controller: "errorController"})

        .when("/login"      , {templateUrl: "pages/login.html" , controller: "loginController"})

        .otherwise({redirectTo: '/error/0'});
}])


;

